package com.lovo.service;

import com.lovo.entity.MovieEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(name = "frontSys", url = "http://127.0.0.1:8881/")
public interface IRemoteService {
    @GetMapping("currentMonthMovie/{date}")
    List<MovieEntity> currentMonthMovie(@PathVariable("date") String date);
}
